package aiyh.utils.sqlUtil.builderSql;

import aiyh.utils.sqlUtil.sqlResult.SqlResult;
import aiyh.utils.sqlUtil.whereUtil.Where;
import aiyh.utils.sqlUtil.whereUtil.impl.WhereImpl;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author  EBU7-dev1-ay
 * @date 2021/8/23 0023 14:27
 * Builder sql
 */

public interface BuilderSql {
	SqlResult insertSql(String tableName, Map<String,Object> map);
	SqlResult insertBatchSql(String tableName, List<LinkedHashMap<String, Object>> mapList);
	SqlResult updateSql(String tableName, Map<String,Object> map, Where where);
	SqlResult updateBatchSql(String tableName, List<LinkedHashMap<String, Object>> map, List<Where> whereList);
	String insertSqlForString(String tableName, Map<String,Object> map);
	String updateSqlForString(String tableName, Map<String,Object> map, WhereImpl where);
}
